/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: AliceMana
 * Date: 2022-08-05
 * Time: 21:11
 */

class Test {
    public String toString () {
        System.out.print("aaa");
        return "bbb";
    }

}
class Dog {
    public String name = "小白";
    public int age = 5;// 字段 / 成员变量

    public void bark() {
        System.out.println(name + "汪汪叫!");
    }
    public void eat() {
        System.out.println(name + "正在吃东西");
    }// 属性 / 成员方法

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
//        dog.name = "小白";
//        dog.age = 5;
        dog.bark();
        dog.eat();
        //dog.setName("小白");
        //dog.setAge(5);
    }
}
public class Test1 {

    public static void main1(String[] args) {
        Test test = new Test();
        System.out.println(test);
    }


}